<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Teacher</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>

<body>
<table width="200" border="2" bordercolor="#FFFFFF">
  <tr>
    <td colspan="2"><div align="center"><img src="/media/banner_2.jpg" alt="baner" width="1280" height="158" /></div> 
    <div align="right">You are logged in as {{USER}} (<a  href="http://{{ URL }}/teacher/logout">Logout</a>)</div></td>
  </tr>
  <tr>
    <td width="277" height="39" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/add_student_form" class="style1">ADD STUDENT </a></div>
    </div></td>
    <td width="997" rowspan="9"><div align="center">
      <table width="636" height="258" border="0">
        <tr>
          <td width="630"><div align="center">
		{% if errors %}
       		 	<center>
            		{% for error in errors %}
            		<p style="color: red;">{{ error }}</p>
            		{% endfor %}
        		</center>
		{% endif %}
	  <form action="/teacher/viewsStudent/" method= get>
	 <table width = 950 border="0" cellspacing="1" cellpadding="1" align="center">
                    <tbody><tr bgcolor="D4D0C8"> 
                      <td colspan="9"> 
                        <div align="center"><b>DETAIL STUDENTS ALL SECTION</b></div>
                      </td>
                    </tr>
                    <tr bgcolor="D4D0C8"> 
                      <td width=60> 
                        <div align="center">Section</div>
                      </td>
                      <td width=350> 
                        <div align="center">ID</div>
                      </td>
                      <td width=400> 
                        <div align="center">Name</div>
                      </td>
                      <td width=150> 
                        <div align="center">Lab</div>
                      </td>
                      <td width=150> 
                        <div align="center">Mid</div>
                      </td>
                      <td width=150> 
                        <div align="center">Final</div>
                      </td>
                      <td width=250> 
                        <div align="center">Total score</div>
		      </td>
		      <td width=250> 
                        <div align="center">Teacher</div>
		      </td>
		      <td width=250> 
		      </td>
                    </tr>
                   <tr>
                 {% for STUDENT in STUDENT%}
	             <tr bgcolor="D4D0C8"> 
                      <td width=60> 
                        <div align="center">{{STUDENT.section}}</div>
                      </td>
                      <td width=350> 
                        <div align="center">{{STUDENT.studentID}}</div>
                      </td>
                      <td width=400> 
                        <div align="center">{{STUDENT.firstName}} {{STUDENT.lastName}} </div>
                      </td>
                      <td width=150> 
                        <div align="center">{{STUDENT.labScore}}</div>
                      </td>
                      <td width=150> 
                        <div align="center">{{STUDENT.midScore}}</div>
                      </td>
                      <td width=150> 
                        <div align="center">{{STUDENT.finalScore}}</div>
                      </td>
                      <td width=250> 
                        <div align="center">{{STUDENT.totalScore}}</div>
                      </td>
		      <td width=250> 
                        <div align="center">{{STUDENT.teacherName}}</div>
                      </td>
		      <td width=250> 
                        <center><a href="http://{{ URL }}/teacher/viewsStudent/?button={{STUDENT.studentID}}" class="style1">Delete</a></center>
                      </td>
                    </tr>
		

		{% if not forloop.last %}	
		{% endif %}
		
		{% endfor %}
		</form>
             
                    <tr bgcolor="D4D0C8"> 
                      <td colspan="9"> 
                        <div align="center">
                          <form action="http://{{ URL }}/teacher/add_student_form" method="get"> 
                          <input type="submit" value="ADD ANOTHER STUDENT">
                        </div>
                      </td>
                    </tr>
                   </form>
                  </tbody></table> 
		
          </div></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/remove_student_form" class="style1">REMOVE STUDENT </a></div>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/views_student_form" class="style1">VIEWS STUDENT DETAIL</a></div>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/add_lab_form" class="style1">ADD/EDIT LAB SCORE </a></div>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/add_mid_form" class="style1">ADD/EDIT MIDTEAM SCORE </a></div>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center"><span class="style1">
	<a href="http://{{ URL }}/teacher/add_final_form" class="style1">ADD/EDIT FINAL SCORE </a></span></div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/calculate_grade" class="style1">CALCULATION GRADE </a></div>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/show_grade" class="style1">SHOW GRADE FOR STUDENT </a></div>
    </div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center"><span class="style1"><a href="http://{{ URL }}/teacher/upload_file" class="style1">UPLOAD FILE </a></span></div></td>
  </tr>
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/send_grade" class="style1">SENT GRADE TO   DEPARTMENT</a></div>
    </div></td>
  </tr>
  
  <tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/show_grade_grapht" class="style1">GRADE GRAPH</a></div>
    </div></td>
  </tr><tr>
    <td height="40" bgcolor="#3B5999"><div align="center" class="style1">
      <div align="center"><a href="http://{{ URL }}/teacher/logout" class="style1">LOGOUT</a></div>
    </div></td>
  </tr>
</table>
<div align="center"></div>
<p>&nbsp;</p>
</body>
</html>
